package cn.ainit.yz.execut;

import java.util.List;

import javax.annotation.Resource;

import org.springframework.stereotype.Service;

import cn.ainit.yz.execut.entity.Execut;
import cn.ainit.yz.execut.entity.ExecutFM;
import cn.ainit.yz.execut.entity.ExecutZD;
import cn.ainit.yz.execut.entity.ExecutZW;
@Service
public class ExecutServiceImpl implements ExecutService {
	private ExecutDao executDao;
	
	@Resource
	public void setExecutDao(ExecutDao executDao) {
		this.executDao = executDao;
	}
	
	@Override
	public boolean saveExBase(Execut execut) throws Exception {
		return this.executDao.saveExBase(execut);
	}

	@Override
	public boolean updateExBase(Execut execut) throws Exception {
		return this.executDao.updateExBase(execut);
	}
	@Override
	public List saveExFM(List<ExecutFM> executFMs, String peId) throws Exception {
		return this.executDao.saveExFM(executFMs, peId);
	}

	@Override
	public List<String> saveExZD(List<ExecutZD> executZDs, String peId)
			throws Exception {
		return this.executDao.saveExZD(executZDs, peId);
	}

	@Override
	public List<String> saveExZW(List<ExecutZW> executZWs, String peId)
			throws Exception {
		return this.executDao.saveExZW(executZWs, peId);
	}

	@Override
	public List<ExecutFM> findFMList(String ysId) throws Exception {
		return this.executDao.findFMList(ysId);
	}

	@Override
	public List<ExecutZD> findZDList(String ysId) throws Exception {
		return this.executDao.findZDList(ysId);
	}

	@Override
	public List<ExecutZW> findZWList(String ysId) throws Exception {
		return this.executDao.findZWList(ysId);
	}
	@Override
	public String exeToSprk(String exId,String oId) throws Exception {
		return this.executDao.exeToSprk(exId,oId);
	}
}
